.class public Lcom/brixd/niceapp/db/CommunityEstimateEntityDao;
.super Lde/greenrobot/dao/AbstractDao;
.source "CommunityEstimateEntityDao.java"


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lcom/brixd/niceapp/db/CommunityEstimateEntityDao$Properties;
    }
.end annotation

.annotation system Ldalvik/annotation/Signature;
    value = {
        "Lde/greenrobot/dao/AbstractDao",
        "<",
        "Lcom/brixd/niceapp/db/CommunityEstimateEntity;",
        "Ljava/lang/Long;",
        ">;"
    }
.end annotation


# static fields
.field public static final TABLENAME:Ljava/lang/String; = "COMMUNITY_ESTIMATE_ENTITY"


# direct methods
.method public constructor <init>(Lde/greenrobot/dao/internal/DaoConfig;)V
    .registers 2
    .param p1, "config"    # Lde/greenrobot/dao/internal/DaoConfig;

    .prologue
    .line 32
    invoke-direct {p0, p1}, Lde/greenrobot/dao/AbstractDao;-><init>(Lde/greenrobot/dao/internal/DaoConfig;)V

    .line 33
    return-void
.end method

.method public constructor <init>(Lde/greenrobot/dao/internal/DaoConfig;Lcom/brixd/niceapp/db/DaoSession;)V
    .registers 3
    .param p1, "config"    # Lde/greenrobot/dao/internal/DaoConfig;
    .param p2, "daoSession"    # Lcom/brixd/niceapp/db/DaoSession;

    .prologue
    .line 36
    invoke-direct {p0, p1, p2}, Lde/greenrobot/dao/AbstractDao;-><init>(Lde/greenrobot/dao/internal/DaoConfig;Lde/greenrobot/dao/AbstractDaoSession;)V

    .line 37
    return-void
.end method

.method public static createTable(Landroid/database/sqlite/SQLiteDatabase;Z)V
    .registers 5
    .param p0, "db"    # Landroid/database/sqlite/SQLiteDatabase;
    .param p1, "ifNotExists"    # Z

    .prologue
    .line 41
    if-eqz p1, :cond_5b

    const-string v0, "IF NOT EXISTS "

    .line 42
    .local v0, "constraint":Ljava/lang/String;
    :goto_4
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "CREATE TABLE "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\'COMMUNITY_ESTIMATE_ENTITY\' ("

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\'_id\' INTEGER PRIMARY KEY AUTOINCREMENT ,"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\'APP_ID\' INTEGER NOT NULL ,"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\'DATA\' TEXT,"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\'TIME_UPDATED\' INTEGER);"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0, v1}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 48
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "CREATE UNIQUE INDEX "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "IDX_COMMUNITY_ESTIMATE_ENTITY_APP_ID_DESC ON COMMUNITY_ESTIMATE_ENTITY"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, " (APP_ID);"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0, v1}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 50
    return-void

    .line 41
    .end local v0    # "constraint":Ljava/lang/String;
    :cond_5b
    const-string v0, ""

    goto :goto_4
.end method

.method public static dropTable(Landroid/database/sqlite/SQLiteDatabase;Z)V
    .registers 5
    .param p0, "db"    # Landroid/database/sqlite/SQLiteDatabase;
    .param p1, "ifExists"    # Z

    .prologue
    .line 54
    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "DROP TABLE "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    if-eqz p1, :cond_21

    const-string v1, "IF EXISTS "

    :goto_f
    invoke-virtual {v2, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, "\'COMMUNITY_ESTIMATE_ENTITY\'"

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    .line 55
    .local v0, "sql":Ljava/lang/String;
    invoke-virtual {p0, v0}, Landroid/database/sqlite/SQLiteDatabase;->execSQL(Ljava/lang/String;)V

    .line 56
    return-void

    .line 54
    .end local v0    # "sql":Ljava/lang/String;
    :cond_21
    const-string v1, ""

    goto :goto_f
.end method


# virtual methods
.method protected bindValues(Landroid/database/sqlite/SQLiteStatement;Lcom/brixd/niceapp/db/CommunityEstimateEntity;)V
    .registers 9
    .param p1, "stmt"    # Landroid/database/sqlite/SQLiteStatement;
    .param p2, "entity"    # Lcom/brixd/niceapp/db/CommunityEstimateEntity;

    .prologue
    .line 61
    invoke-virtual {p1}, Landroid/database/sqlite/SQLiteStatement;->clearBindings()V

    .line 63
    invoke-virtual {p2}, Lcom/brixd/niceapp/db/CommunityEstimateEntity;->getId()Ljava/lang/Long;

    move-result-object v1

    .line 64
    .local v1, "id":Ljava/lang/Long;
    if-eqz v1, :cond_11

    .line 65
    const/4 v3, 0x1

    invoke-virtual {v1}, Ljava/lang/Long;->longValue()J

    move-result-wide v4

    invoke-virtual {p1, v3, v4, v5}, Landroid/database/sqlite/SQLiteStatement;->bindLong(IJ)V

    .line 67
    :cond_11
    const/4 v3, 0x2

    invoke-virtual {p2}, Lcom/brixd/niceapp/db/CommunityEstimateEntity;->getAppID()J

    move-result-wide v4

    invoke-virtual {p1, v3, v4, v5}, Landroid/database/sqlite/SQLiteStatement;->bindLong(IJ)V

    .line 69
    invoke-virtual {p2}, Lcom/brixd/niceapp/db/CommunityEstimateEntity;->getData()Ljava/lang/String;

    move-result-object v0

    .line 70
    .local v0, "data":Ljava/lang/String;
    if-eqz v0, :cond_23

    .line 71
    const/4 v3, 0x3

    invoke-virtual {p1, v3, v0}, Landroid/database/sqlite/SQLiteStatement;->bindString(ILjava/lang/String;)V

    .line 74
    :cond_23
    invoke-virtual {p2}, Lcom/brixd/niceapp/db/CommunityEstimateEntity;->getTimeUpdated()Ljava/lang/Long;

    move-result-object v2

    .line 75
    .local v2, "timeUpdated":Ljava/lang/Long;
    if-eqz v2, :cond_31

    .line 76
    const/4 v3, 0x4

    invoke-virtual {v2}, Ljava/lang/Long;->longValue()J

    move-result-wide v4

    invoke-virtual {p1, v3, v4, v5}, Landroid/database/sqlite/SQLiteStatement;->bindLong(IJ)V

    .line 78
    :cond_31
    return-void
.end method

.method protected bridge synthetic bindValues(Landroid/database/sqlite/SQLiteStatement;Ljava/lang/Object;)V
    .registers 3

    .prologue
    .line 15
    check-cast p2, Lcom/brixd/niceapp/db/CommunityEstimateEntity;

    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/db/CommunityEstimateEntityDao;->bindValues(Landroid/database/sqlite/SQLiteStatement;Lcom/brixd/niceapp/db/CommunityEstimateEntity;)V

    return-void
.end method

.method public getKey(Lcom/brixd/niceapp/db/CommunityEstimateEntity;)Ljava/lang/Long;
    .registers 3
    .param p1, "entity"    # Lcom/brixd/niceapp/db/CommunityEstimateEntity;

    .prologue
    .line 117
    if-eqz p1, :cond_7

    .line 118
    invoke-virtual {p1}, Lcom/brixd/niceapp/db/CommunityEstimateEntity;->getId()Ljava/lang/Long;

    move-result-object v0

    .line 120
    :goto_6
    return-object v0

    :cond_7
    const/4 v0, 0x0

    goto :goto_6
.end method

.method public bridge synthetic getKey(Ljava/lang/Object;)Ljava/lang/Object;
    .registers 3

    .prologue
    .line 15
    check-cast p1, Lcom/brixd/niceapp/db/CommunityEstimateEntity;

    invoke-virtual {p0, p1}, Lcom/brixd/niceapp/db/CommunityEstimateEntityDao;->getKey(Lcom/brixd/niceapp/db/CommunityEstimateEntity;)Ljava/lang/Long;

    move-result-object v0

    return-object v0
.end method

.method protected isEntityUpdateable()Z
    .registers 2

    .prologue
    .line 127
    const/4 v0, 0x1

    return v0
.end method

.method public readEntity(Landroid/database/Cursor;I)Lcom/brixd/niceapp/db/CommunityEstimateEntity;
    .registers 11
    .param p1, "cursor"    # Landroid/database/Cursor;
    .param p2, "offset"    # I

    .prologue
    const/4 v5, 0x0

    .line 89
    new-instance v0, Lcom/brixd/niceapp/db/CommunityEstimateEntity;

    add-int/lit8 v1, p2, 0x0

    .line 90
    invoke-interface {p1, v1}, Landroid/database/Cursor;->isNull(I)Z

    move-result v1

    if-eqz v1, :cond_27

    move-object v1, v5

    :goto_c
    add-int/lit8 v2, p2, 0x1

    .line 91
    invoke-interface {p1, v2}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v2

    add-int/lit8 v4, p2, 0x2

    .line 92
    invoke-interface {p1, v4}, Landroid/database/Cursor;->isNull(I)Z

    move-result v4

    if-eqz v4, :cond_32

    move-object v4, v5

    :goto_1b
    add-int/lit8 v6, p2, 0x3

    .line 93
    invoke-interface {p1, v6}, Landroid/database/Cursor;->isNull(I)Z

    move-result v6

    if-eqz v6, :cond_39

    :goto_23
    invoke-direct/range {v0 .. v5}, Lcom/brixd/niceapp/db/CommunityEstimateEntity;-><init>(Ljava/lang/Long;JLjava/lang/String;Ljava/lang/Long;)V

    .line 95
    .local v0, "entity":Lcom/brixd/niceapp/db/CommunityEstimateEntity;
    return-object v0

    .line 90
    .end local v0    # "entity":Lcom/brixd/niceapp/db/CommunityEstimateEntity;
    :cond_27
    add-int/lit8 v1, p2, 0x0

    invoke-interface {p1, v1}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    goto :goto_c

    .line 92
    :cond_32
    add-int/lit8 v4, p2, 0x2

    invoke-interface {p1, v4}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v4

    goto :goto_1b

    .line 93
    :cond_39
    add-int/lit8 v5, p2, 0x3

    invoke-interface {p1, v5}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v6

    invoke-static {v6, v7}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v5

    goto :goto_23
.end method

.method public bridge synthetic readEntity(Landroid/database/Cursor;I)Ljava/lang/Object;
    .registers 4

    .prologue
    .line 15
    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/db/CommunityEstimateEntityDao;->readEntity(Landroid/database/Cursor;I)Lcom/brixd/niceapp/db/CommunityEstimateEntity;

    move-result-object v0

    return-object v0
.end method

.method public readEntity(Landroid/database/Cursor;Lcom/brixd/niceapp/db/CommunityEstimateEntity;I)V
    .registers 8
    .param p1, "cursor"    # Landroid/database/Cursor;
    .param p2, "entity"    # Lcom/brixd/niceapp/db/CommunityEstimateEntity;
    .param p3, "offset"    # I

    .prologue
    const/4 v1, 0x0

    .line 101
    add-int/lit8 v0, p3, 0x0

    invoke-interface {p1, v0}, Landroid/database/Cursor;->isNull(I)Z

    move-result v0

    if-eqz v0, :cond_2e

    move-object v0, v1

    :goto_a
    invoke-virtual {p2, v0}, Lcom/brixd/niceapp/db/CommunityEstimateEntity;->setId(Ljava/lang/Long;)V

    .line 102
    add-int/lit8 v0, p3, 0x1

    invoke-interface {p1, v0}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v2

    invoke-virtual {p2, v2, v3}, Lcom/brixd/niceapp/db/CommunityEstimateEntity;->setAppID(J)V

    .line 103
    add-int/lit8 v0, p3, 0x2

    invoke-interface {p1, v0}, Landroid/database/Cursor;->isNull(I)Z

    move-result v0

    if-eqz v0, :cond_39

    move-object v0, v1

    :goto_1f
    invoke-virtual {p2, v0}, Lcom/brixd/niceapp/db/CommunityEstimateEntity;->setData(Ljava/lang/String;)V

    .line 104
    add-int/lit8 v0, p3, 0x3

    invoke-interface {p1, v0}, Landroid/database/Cursor;->isNull(I)Z

    move-result v0

    if-eqz v0, :cond_40

    :goto_2a
    invoke-virtual {p2, v1}, Lcom/brixd/niceapp/db/CommunityEstimateEntity;->setTimeUpdated(Ljava/lang/Long;)V

    .line 105
    return-void

    .line 101
    :cond_2e
    add-int/lit8 v0, p3, 0x0

    invoke-interface {p1, v0}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v2

    invoke-static {v2, v3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    goto :goto_a

    .line 103
    :cond_39
    add-int/lit8 v0, p3, 0x2

    invoke-interface {p1, v0}, Landroid/database/Cursor;->getString(I)Ljava/lang/String;

    move-result-object v0

    goto :goto_1f

    .line 104
    :cond_40
    add-int/lit8 v0, p3, 0x3

    invoke-interface {p1, v0}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v0

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    goto :goto_2a
.end method

.method public bridge synthetic readEntity(Landroid/database/Cursor;Ljava/lang/Object;I)V
    .registers 4

    .prologue
    .line 15
    check-cast p2, Lcom/brixd/niceapp/db/CommunityEstimateEntity;

    invoke-virtual {p0, p1, p2, p3}, Lcom/brixd/niceapp/db/CommunityEstimateEntityDao;->readEntity(Landroid/database/Cursor;Lcom/brixd/niceapp/db/CommunityEstimateEntity;I)V

    return-void
.end method

.method public readKey(Landroid/database/Cursor;I)Ljava/lang/Long;
    .registers 5
    .param p1, "cursor"    # Landroid/database/Cursor;
    .param p2, "offset"    # I

    .prologue
    .line 83
    add-int/lit8 v0, p2, 0x0

    invoke-interface {p1, v0}, Landroid/database/Cursor;->isNull(I)Z

    move-result v0

    if-eqz v0, :cond_a

    const/4 v0, 0x0

    :goto_9
    return-object v0

    :cond_a
    add-int/lit8 v0, p2, 0x0

    invoke-interface {p1, v0}, Landroid/database/Cursor;->getLong(I)J

    move-result-wide v0

    invoke-static {v0, v1}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    goto :goto_9
.end method

.method public bridge synthetic readKey(Landroid/database/Cursor;I)Ljava/lang/Object;
    .registers 4

    .prologue
    .line 15
    invoke-virtual {p0, p1, p2}, Lcom/brixd/niceapp/db/CommunityEstimateEntityDao;->readKey(Landroid/database/Cursor;I)Ljava/lang/Long;

    move-result-object v0

    return-object v0
.end method

.method protected updateKeyAfterInsert(Lcom/brixd/niceapp/db/CommunityEstimateEntity;J)Ljava/lang/Long;
    .registers 6
    .param p1, "entity"    # Lcom/brixd/niceapp/db/CommunityEstimateEntity;
    .param p2, "rowId"    # J

    .prologue
    .line 110
    invoke-static {p2, p3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    invoke-virtual {p1, v0}, Lcom/brixd/niceapp/db/CommunityEstimateEntity;->setId(Ljava/lang/Long;)V

    .line 111
    invoke-static {p2, p3}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    return-object v0
.end method

.method protected bridge synthetic updateKeyAfterInsert(Ljava/lang/Object;J)Ljava/lang/Object;
    .registers 6

    .prologue
    .line 15
    check-cast p1, Lcom/brixd/niceapp/db/CommunityEstimateEntity;

    invoke-virtual {p0, p1, p2, p3}, Lcom/brixd/niceapp/db/CommunityEstimateEntityDao;->updateKeyAfterInsert(Lcom/brixd/niceapp/db/CommunityEstimateEntity;J)Ljava/lang/Long;

    move-result-object v0

    return-object v0
.end method
